package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksOpus;
import com.ecoolex.ying.space.entity.UserWorksOpusExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksOpusMapper {
    long countByExample(UserWorksOpusExample example);

    int deleteByExample(UserWorksOpusExample example);

    int deleteByPrimaryKey(Integer worksId);

    int insert(UserWorksOpus record);

    int insertSelective(@Param("record") UserWorksOpus record, @Param("selective") UserWorksOpus.Column ... selective);

    UserWorksOpus selectOneByExample(UserWorksOpusExample example);

    List<UserWorksOpus> selectByExample(UserWorksOpusExample example);

    UserWorksOpus selectByPrimaryKey(Integer worksId);

    UserWorksOpus selectByPrimaryKeyWithLogicalDelete(@Param("worksId") Integer worksId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksOpus record, @Param("example") UserWorksOpusExample example, @Param("selective") UserWorksOpus.Column ... selective);

    int updateByExample(@Param("record") UserWorksOpus record, @Param("example") UserWorksOpusExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksOpus record, @Param("selective") UserWorksOpus.Column ... selective);

    int updateByPrimaryKey(UserWorksOpus record);

    int batchInsert(@Param("list") List<UserWorksOpus> list);

    int batchInsertSelective(@Param("list") List<UserWorksOpus> list, @Param("selective") UserWorksOpus.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksOpusExample example);

    int logicalDeleteByPrimaryKey(Integer worksId);
}